package com.gl.saasservice.entity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 权限信息表
 */
@Entity
@Table(name = "saas_permission")
public class Permission extends IdEntity {
    /**
     * 父ID
     */
    private Long parentId;

    /**
     * 名称
     */
    private String name;

    /**
     * 类型：1 菜单 2 按钮
     */
    private Short type;

    /**
     * 代码
     */
    private String code;

    /**
     * url
     */
    private String url;

    /**
     * 方法
     */
    private String method;

    /**
     * 图标
     */
    private String icon;

    /**
     * 排序
     */
    private Integer sortby;

    private Integer masterShow; //主管理员默认是否可见：1可见 2不可见

    public Integer getMasterShow() {
        return masterShow;
    }

    public void setMasterShow(Integer masterShow) {
        this.masterShow = masterShow;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Short getType() {
        return type;
    }

    public void setType(Short type) {
        this.type = type;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getSortby() {
        return sortby;
    }

    public void setSortby(Integer sortby) {
        this.sortby = sortby;
    }
}
